FROM ubuntu:20.04

# 替换为阿里云的 Ubuntu 镜像源
RUN sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list
RUN sed -i 's/security.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list

# 安装所需的包和 MySQL 客户端
RUN apt-get update && \
    apt-get install -y mysql-client redis-tools curl wget net-tools iputils-ping  && \
    rm -rf /var/lib/apt/lists/*
